define(['app'], function( app ) {
'use strict';

  /**
   * 过滤器：合同的续费审核状态
   */
  app.filter('filterPayrecord', function() {
    var type;
    return function(input) {
      switch (input) {
        case "0":
          type = "待审核";
          break;
        case "1":
          type = "已经审核成功";
          break;
        case "2":
          type = "审核失败，需要重新添加申请";
        default:
          break;
      }
      return type;
    }
  });

  /**
   * 过滤器：续费的审核状态
   */
  app.filter('filterXufei', function() {
    var type;
    return function(input) {
      switch (input) {
        case " ":
          type = "正在服务中";
          break;
        default:
          type = "结束服务"
          break;
      }
      return type;
    }
  });

});